﻿using System;
using System.Collections.Generic;

namespace Pixels.Logic.Structures
{
    public class HydroponicFarm : Structure
    {
        internal override string getName() {
            return "Hydroponic Farm";
        }

        internal override void calculateEffects() {
            //gameplayEffect.colonyResourceDelta.changeResource(Resource.Apples, 2);

            var food = AssignedColonists.Count * GlobalConsts.RESOURCES_PER_FARMER;
            giveResource(Resource.Apples, food);


        }

        protected override bool isColonistTypeAssignable(Colonist.Occupation occupation) {
            return occupation == Colonist.Occupation.colonist;
        }

        internal override int maxSlots() {
            if (Technologies.advanced_hydroponics.Researched()) return 3;
            return 2;
        }
        
    }
}
